package com.bjbn.service.impl;

import com.bjbn.bean.entity.BaseStand;
import com.bjbn.mapper.secondary.BaseStandMapper;
import com.bjbn.service.StandService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Slf4j
public class StandServiceImpl implements StandService {
    @Autowired
    private BaseStandMapper baseStandMapper;

    @Override
    @Transactional(transactionManager = "secondaryTransactionManager")
    public List<BaseStand> getAllStand() {
        return baseStandMapper.selectList(null);
    }
} 